package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2021/10/29
 * Time: 11:51
 * Description:
 */
public class DisplayOperation implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示书籍！");
        int size = bookList.getUsedSize();
        for (int i = 0; i < size; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
